Someone tell me why people writing GNU code use { like that?

Posted by Deus Deceit on Ask Ubuntu See other posts from Ask Ubuntu or by Deus Deceit
Published on 2012-11-12T04:16:39Z Indexed on 2012/11/12 5:15 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

I saw the rules on how to type code for UNITY project or GNU software in general. Why do they write code in such an ugly form? Is there a particular reason why they don't put brackets the way (from what I know) most people do?

Why like this:

for (i = 0; i < 5; i++)
   {
      //do something
   }

and not like this:

for (i = 0; i < 5; i++)
{
    //Do something
}

or this:

for(i = 0; i < 5l i++) {
   //Do Something
}

???

© Ask Ubuntu or respective owner

Related posts about unity

Related posts about programming